rbdir = $(pyexecdir)/reviewboard/contrib
data_in_files =				\
	conf/apache-fastcgi.conf.in	\
	conf/apache-modpython.conf.in	\
	conf/lighttpd.conf.in		\
	conf/search-cron.conf.in

nobase_rb_DATA = $(data_in_files:.conf.in=.conf)
%.conf:	%.conf.in
	mkdir -p `dirname $@`
	@sed -e "s|\@pythondir\@|$(pythondir)|g" -e "s|\@djangodir\@|$(DJANGO_PATH)|g" $< > $@

# I decided, for now, *not* to include "development" scripts such as db2wiki.py
# or django profiling tools.  We may change this later.
nobase_rb_SCRIPTS =			\
	db/backup-db.py			\
	db/load-db.py			\
	i18n/compile-messages.py	\
	i18n/make-messages.py		\
	i18n/unique-messages.py		\
	tools/post-review

EXTRA_DIST =			\
	$(data_in_files)	\
	$(nobase_rb_SCRIPTS)

BUILT_SOURCES =				\
	conf/apache-fastcgi.conf	\
	conf/apache-modpython.conf	\
	conf/lighttpd.conf		\
	conf/search-cron.conf
CLEANFILES = $(BUILT_SOURCES)
